hi_cc_library_static(
  NAME
    ai::fmk::tensor::aipp_para_compatible_static
  SRCS
    hiai_tensor_aipp_para_legacy.c
    hiai_tensor_aipp_para_local.c
    hiai_tensor_aipp_para.c
    hiai_tensor_aipp_para_util.c
)

hi_cc_library_static(
  NAME
    ai::fmk::tensor::nd_tensor_static
  SRCS
    hiai_nd_tensor_buffer_local.c
    hiai_nd_tensor_buffer_legacy.cpp
    hiai_nd_tensor_buffer.c
    hiai_nd_tensor_desc.c
    hiai_nd_tensor_desc_util.c
    hiai_nd_tensor_buffer_util.c
  CDEFS
    HIAI_C_API_VISIABLE
  COPTS
    -frtti
)

hi_cc_function(AI_SUPPORT_LEGACY_ROM_COMPATIBLE
  NAME
    ai::fmk::tensor::nd_tensor_static
  SRCS
    hiai_nd_tensor_buffer_legacy_compatible.cpp
)

hi_cc_library_static(
  NAME
    ai::fmk::tensor::nd_tensor_ext_static
  SRCS
    hiai_nd_tensor_buffer_ext.cpp
  COPTS
    -frtti
)